// 统一管理和用户有关的请求
import instance from '@/utils/request'
// 注册请求
export const register = (data) => instance.post('/user/registered', data)
// 登录请求
export const login = (data) => instance.post('/user/login', data)
// 获取用户数据请求
export const getUserData = (token) => instance.get('user/', { headers: { authorization: token } })
